package com.zhentao.model.realname.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName ap_realname
 */
@TableName(value ="ap_realname")
@Data
@ApiModel
public class ApRealname implements Serializable {
    /**
     * 用户实名表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 姓名
     */
    @TableField(value = "realname_name")
    private String realnameName;

    /**
     * 身份证号（18位）
     */
    @TableField(value = "idno")
    private String idno;

    /**
     * 用户性别
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 出生年月
     */
    @TableField(value = "birthdate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date birthdate;

    /**
     * 用户籍贯
     */
    @TableField(value = "native_place")
    private String nativePlace;

    /**
     * 审核状态（0/实名失败 1/实名成功）
     */
    @TableField(value = "audit_status")
    private Integer auditStatus;

    /**
     * 拒绝原因
     */
    @TableField(value = "reason")
    private String reason;

    /**
     * 审核通过时间
     */
    @TableField(value = "pass_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date passTime;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createdTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
